/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aseo.model.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "reclamo_nota")
public class ReclamoNota implements Serializable {

	private static final long serialVersionUID = 1060897142094168391L;

	@SequenceGenerator(name = "reclamo_nota_id_reclamo_nota_seq", sequenceName = "reclamo_nota_id_reclamo_nota_seq")
    @GeneratedValue(generator = "reclamo_nota_id_reclamo_nota_seq")
    @Id
    @Basic(optional = false)
    @Column(name = "id_reclamo_nota")
    private Long idReclamoNota;
    
    @Column(name = "fecha_hora")
    private Timestamp fechaHora;
    
    @JoinColumn(name = "id_reclamo", referencedColumnName = "id_reclamo")
    @ManyToOne
    private Reclamo idReclamo;
    
    @Column(name = "nota")
    private String nota;

    public ReclamoNota() {
    }

    public Long getIdReclamoNota() {
        return idReclamoNota;
    }

    public void setIdReclamoNota(Long idReclamoNota) {
        this.idReclamoNota = idReclamoNota;
    }

    public Timestamp getFechaHora() {
        return fechaHora;
    }

    public void setFechaHora(Timestamp fechaHora) {
        this.fechaHora = fechaHora;
    }

    public String getNota() {
		return nota;
	}
    
    public void setNota(String nota) {
		this.nota = nota;
	}
    
    public Reclamo getIdReclamo() {
        return idReclamo;
    }

    public void setIdReclamo(Reclamo idReclamo) {
        this.idReclamo = idReclamo;
    }
    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idReclamoNota != null ? idReclamoNota.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ReclamoNota)) {
            return false;
        }
        ReclamoNota other = (ReclamoNota) object;
        if ((this.idReclamoNota == null && other.idReclamoNota != null) || (this.idReclamoNota != null && !this.idReclamoNota.equals(other.idReclamoNota))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.aseo.model.entity.ReclamoNota[idReclamoNota=" + idReclamoNota + "]";
    }

}
